package com.java.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.java.entity.Company;


/**
 * 公司信息服务
 * @author wqf
 * @version  Nov 24, 2011 11:51:06 AM
 */
@Transactional(propagation = Propagation.REQUIRED,readOnly=false, rollbackFor = Exception.class)
public class CompanyService extends BaseService{
	
	/**
	 * 修改
	 * @param OrderForm
	 */
	public void updateCompany(Company obj){
		this.dao.saveOrUpdateObject(obj);
	}
	
	public Company getCompanyById(Long id){
		return this.dao.loadObject(Company.class, id);
	}
}
